import React from 'react';
import "./style.less";
import Baselist from 'components/Baselist';
import Crumb from 'components/Crumb';

import {Row,Button,Tree} from 'antd';

const TreeNode = Tree.TreeNode;

import API, {GET_ADMIN_LIST,GET_ADMIN_PRIVS} from 'lib/api';

export default class AppCate extends React.Component {
    constructor(props) {
        super(props);

    }


    state = {
        //后台模型
        model: 'admin',
        //列表数据
        list: GET_ADMIN_LIST,
        //权限
        privs: GET_ADMIN_PRIVS,

        crumb:[
            {
                'href': '/',
                'title': '首页',
            },
            {
                'href': '/appcate',
                'title': '应用分类'
            }
        ]
    }

    componentDidMount() {
        console.log(this.state.crumb)

    }

    onCheck(selectedKeys,e){
        console.log(selectedKeys);
        console.log(e);

    }

    render() {
        return (
            <Baselist>
                {/* table */}
                <div>
                    <Crumb crumb={this.state.crumb}/>
                    <Row gutter={24} style={{borderRadius: '8px', margin: 0, background: '#fff', minHeight: 500}}>
                        <Row className="head_button" style={{marginTop: 13}} gutter={4}>

                            <Button
                                type="primary"
                                icon="plus-circle-o"
                            >
                                新增
                            </Button>

                            <Button
                                type="primary"
                                icon="delete"
                            >
                                删除
                            </Button>

                        </Row>

                        <Row>

                        </Row>
                    </Row>
                </div>
            </Baselist>
        )
    }
}